<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			*{margin: 0;padding: 0;}
			td{border: 1px solid #ccc;padding: 10px;}
			table{border-collapse: collapse;margin: auto;}
		</style>
	</head>
	<body>
		<script type="text/javascript">
			var yuanGong = [
				['编号','姓名','身份证','生日','性别','文化程度','所属部门'],
				['BH001','张小明','123456789012345678','10.22','男','高中','销售部'],
				['BH002','李大光','123456789012345678','4.22','男','本科','技术部'],
				['BH003','王秀','123456789012345678','8.12','女','硕士','维运部'],
			];
			var strTable = '<table>';
			for (var i = 0; i < yuanGong.length; i++) {
				strTable += '<tr>';
				for (var j = 0; j < yuanGong[i].length; j++) {
					strTable += '<td>';
					strTable += yuanGong[i][j];
					strTable += '</td>';
				}
				strTable += '</tr>';
			}
			strTable += '</table>';
			document.write(strTable);
			
		</script>
	</body>
</html>
